package com.atguigu.facade;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description: 客户端
 * @create: 2022-02-22 11:06
 **/
public class Client {
    public static void main(String[] args) {
        //1.这里直接调用，很麻烦; 2.改为调用外观类
        HomeTheaterFacade homeTheaterFacade = new HomeTheaterFacade();
        System.out.println("--------------家庭影院---------------");

        System.out.println("--------------1.准备---------------");
        homeTheaterFacade.ready();

        System.out.println("--------------2.开始---------------");
        homeTheaterFacade.play();

        System.out.println("--------------3.暂停---------------");
        homeTheaterFacade.pause();

        System.out.println("--------------4.结束---------------");
        homeTheaterFacade.end();
    }
}
